From 758a4a6431c1de09bb52ce378e217dcce7b5f64d Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Mon, 23 Nov 2009 07:17:10 +0000 Subject: [PATCH] pygrub: if default entry is "saved" then use first entry. pygrub doesn't support the "savedefault" command and will error out if menu.lst uses the "default saved" directive. We might as well start on the first entry in this case instead of failing. Signed-off-by: Ian Campbell --- tools/pygrub/src/GrubConf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/pygrub/src/GrubConf.py b/tools/pygrub/src/GrubConf.py index cfd75dbc48..694f5d5dd2 100644 --- a/tools/pygrub/src/GrubConf.py +++ b/tools/pygrub/src/GrubConf.py @@ -258,7 +258,7 @@ class GrubConfigFile(object): return self._default def _set_default(self, val): if val == "saved": - self._default = -1 + self._default = 0 else: self._default = int(val) -- 2.30.2